<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P55 【例3-3】demo03.html</title>
</head>

<body>
    <script>
        var arr = [[12, 59, 66], [100, 888]];
        var sum = 0;
        for (var i in arr) {
            for (var j in arr[i]) {
                sum += arr[i][j];
            }
        }
        console.log('待求和的二维数组：' + arr);
        console.log('二维数组arr求和等于：' + sum);
    </script>
    <a href="../首页/page03.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>